#pragma once

#include <cstdint>
#include <sys/epoll.h>

class IPoller {
public:
    virtual ~IPoller() = default;
    virtual void AddEvent(int fd, uint32_t events, void* ptr) = 0;
    virtual void ModEvent(int fd, uint32_t events, void* ptr) = 0;
    virtual void DelEvent(int fd) = 0;
    virtual void Run() = 0;
};